<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}title{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="{% static 'css/base.css' %}">
    <link rel="stylesheet" href="{% static 'css/bootstrap/bootstrap.min.css' %}">
    <script src="{% static 'js/jQuery/jquery.min.js' %}"></script>
    <script src="{% static 'js/bootstrap/bootstrap.min.js' %}"></script>

    {#    <link rel="stylesheet" type="text/css" href="{% static 'css/normalize.css' %}">#}
    {#    <link rel="stylesheet" type="text/css" href="{% static 'js/bootstrap/dist/css/bootstrap.css' %}">#}
    {#    <script type="text/javascript" src="{% static 'js/jQuery/tmp/jquery.js' %}" charset="utf-8"></script>#}

    {% block custom_css %}{% endblock %}
</head>
<body>
<div class="user-bar">
    <section class="container ">
        {% if request.user.is_authenticated %}
            <div class="row">
                <div class="pull-left btn"><span>服务电话：23333333</span></div>
                <div class="personal pull-right">
                    <div class="btn">

                        {#                    <a href="{% url 'users:my_message' %}">#}
                        {#                        <div class="msg-num"><span id="MsgNum">{{ request.user.unread_nums }}</span></div>#}
                        {#                    </a>#}
                        <span>{{ user.username }}</span>
                        <a class="personcenter" href="{% url 'users:user_info' %}">&nbsp进入个人中心</a>
                        <a class="pull-right" href="{% url 'logout' %}">&nbsp退出</a>
                    </div>
                </div>

            </div>
        {% else %}
            <div class="row">
                <div class="pull-left  btn"><span>服务电话：23333333</span></div>
                <!--登录后跳转-->
                <div class="personal pull-right">
                    <div class="btn">
                        <a style="color:black" class="pull-right registerbtn" href="{% url "register" %}">&nbsp注册</a>
                        <a style="color:black" class="pull-right loginbtn"
                           href="{% url 'login' %}?next={{ request.path }}">&nbsp登录</a>
                    </div>
                </div>


            </div>
        {% endif %}
    </section>
</div>
<section class="container">

    <div class="row">
        {#        <div class="col-md-3">#}
        <img class="col-md-4 logo-img" src="{% static 'img/logo.png' %}"/>
        {#        </div>#}
        {#        <div class="col-md-1"></div>#}
        <div class="navbar-header pull-right logo-nav">
            <ul class="nav navbar-nav">
                <li>
                    <a class="{% ifequal current_page "index" %}active{% endifequal %}" href="/">首页</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "policy" %}active{% endifequal %}" href="{% url 'policy:home' %}">资讯平台</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "patent" %}active{% endifequal %}" href="{% url 'patent:list' %}">交易平台</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "project" %}active{% endifequal %}" href="{% url 'project:list' %}">转化平台</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "incubator" %}active{% endifequal %}" href="{% url 'incubator:list' %}">孵化平台</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "gallery" %}active{% endifequal %}" href="{% url 'gallery:list' %}">展会服务</a>
                </li>
                <li>
                    <a class="{% ifequal current_page "club" %}active{% endifequal %}" href="{% url 'club:home' %}">俱乐部</a>
                </li>
            </ul>
        </div>

    </div>

</section>

<img class="search-bar-bg" src="{% static 'img/bar.jpg' %}"/>
<section class="container search-bar">
    <div class="row">

        <span class="search-bar-title">
            {% ifequal current_page "policy" %}资讯平台{% endifequal %}
            {% ifequal current_page "patent" %}交易平台{% endifequal %}
            {% ifequal current_page "project" %}转化平台{% endifequal %}
            {% ifequal current_page "incubator" %}孵化平台{% endifequal %}
            {% ifequal current_page "gallery" %}展会服务{% endifequal %}
            {% ifequal current_page "club" %}俱乐部{% endifequal %}
        </span>
        {#        <div class="col-md-5"></div>#}
        <form class="form-search pull-right search-bar-box">
            <input class="input-medium search-query" type="text"/>
            <button type="submit" class="btn search-bar-btn">查找</button>
        </form>
    </div>
</section>

{% block custom_bread %}

{% endblock %}
{% block content %}

{% endblock %}
<footer class="footer">
    <div class="container">
        <div class="col-md-12 row">
            <div class="footer-nav pull-left">
                关于本站 | 新闻中心 | 诚聘英才 | 联系我们
            </div>
            <div class="footer-contact pull-right">
                010 - 12354678
            </div>
        </div>
        <div class="col-md-12 row">
            <div class="footer-copyright pull-left">
                Copyright © 2007 - 2018 千松 版权所有 运营商:北京千松科技发展有限公司
            </div>
            <div class="footer-worktime pull-right">工作日:8:30-17:30</div>
        </div>

    </div>

</footer>
</body>
{% block custom_js %}{% endblock %}
</html>